Prev Next |
This section describes how to configure where the log files will be stored.
The location of the log files and their naming is defined in the <log4net> section of the web.config file.
The log files may be stored inside or outside the Sitecore root folder.
To assign the folder where the log files will be stored, please, do the following:
- Open the web.config file.
- Find the <log4net> section and edit the <file value… /> definition. Enter the path to the folder where you want your log files to be stored.
The file element defines the location of the log files. This location must be the same as the setting in LogFolder The file element is a relative or absolute path that always uses slashes (/) as separators. A valid file element for a relative path would be:<file value="$(dataFolder)/logs/log.{date}.{processid}.txt" />
A valid element for an absolute path would be:<file value="C:/inetpub/wwwroot/data/logs/log.{date}.{processid}.txt" />
To assign the folder where the log files will be read from, please, do the following:
- Open the web.config file.
Find the <setting name="LogFolder" value="$(dataFolder)/logs" /> definition and change it to the appropriate value.
Note: the log files can only be read from a location under the Sitecore root folder.
Prev Next